# $Id: PKGBUILD 81117 2012-12-12 00:49:29Z eric $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Anders Bergh <anders1@gmail.com>
pkgbase=lualogging
pkgname=lua51-logging
pkgver=1.1.4
pkgrel=1
pkgdesc="A simple API to use logging features in Lua"
arch=(any)
url="http://www.keplerproject.org/lualogging/"
replaces=(lualogging)
conflicts=(lualogging)
license=('MIT')
depends=('lua51')
source=('http://luaforge.net/frs/download.php/2693/lualogging-1.1.4.tar.gz'
        'LICENSE'
        )
md5sums=('72a8622748a525f5fb8ed23278326f80'
         'c2a5289bdfe3702fd77b365a48251c08')

package_lua51-logging() {
  cd $pkgbase-$pkgver/src

  install -dm755 "$pkgdir/usr/share/lua/5.1/logging"
  cp logging/*.lua "$pkgdir/usr/share/lua/5.1/logging"
  mv "$pkgdir/usr/share/lua/5.1/logging/logging.lua" "$pkgdir/usr/share/lua/5.1"

  install -Dm644  "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
